package com.LGF.Book.biz;

import com.LGF.Book.bean.Member;
import com.LGF.Book.dao.MemberDao;

import java.sql.SQLException;

public class Test {



    public static void main(String[] args) {
       // double d = 80;
        double total = 0;
        total = 12.5;



       // System.out.println(total);
        MemberBiz memberBiz = new MemberBiz();

        Member mem = memberBiz.getById(2022007);
        double discount = mem.getType().getDiscount();
        System.out.println("discount"+discount);
        total =total*discount*0.01;

        System.out.println(total);


    }
}
